if sdl_dep.found()
  executable('local-v4l2', 'local-v4l2.c',
             include_directories : [configinc, spa_inc],
             dependencies : [dl_lib, sdl_dep, pthread_lib],
             install : installed_tests_enabled,
             install_dir : installed_tests_execdir / 'examples' / 'spa')

  if libcamera_dep.found()
    executable('local-libcamera', 'local-libcamera.c',
               include_directories : [configinc, spa_inc],
               dependencies : [dl_lib, sdl_dep, pthread_lib, libcamera_dep],
               install : installed_tests_enabled,
               install_dir : installed_tests_execdir / 'examples' / 'spa')
  endif
endif

executable('example-control', 'example-control.c',
             include_directories : [configinc, spa_inc],
             dependencies : [dl_lib, pthread_lib, mathlib],
             install : installed_tests_enabled,
             install_dir : installed_tests_execdir / 'examples' / 'spa')

executable('adapter-control', 'adapter-control.c',
             include_directories : [configinc, spa_inc],
             dependencies : [dl_lib, pthread_lib, mathlib],
             install : installed_tests_enabled,
             install_dir : installed_tests_execdir / 'examples' / 'spa')
